<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单管理</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jmw.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 80
	});
});
</script>



</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="#">订单管理</a></li>
    </ul>
    </div>
 <form method="post" action="<?php echo url("videoorder/index") ?>">
     <div style="clear: both;width:1100px;height:35px;line-height:35px;margin-bottom:5px;">
    <div class="rightinfo">	
<!--------------------------------------->	
        <ul class="seachforms">
            <li>
            <label>订单编号：</label>
            <input type="text" name="order_no" class="scinputjmw" value="<?php echo isset($param['order_no'])?$param['order_no']:'';?>"/>
            </li>

             <li><label>订单状态</label>  
            <div class="vocation">
            <select name="status" class="select2">
            <option value=""  >请选择状态</option>

            <option value="0" <?php if(isset($param['status'])&& $param['status']==='0')  echo 'selected';else echo ''; ?>>未支付</option>
            <option value="1" <?php if(isset($param['status'])&& $param['status']==='1')  echo 'selected';else echo ''; ?>>已支付</option>

            </select>
            </div>
            </li>

         
            <li><label>下单时间：</label><input name="addtime_timestart" id="addtime_timestart" value="<?php echo isset($param['addtime_timestart'])?$param['addtime_timestart']:'';?>" type="text" class="scinputjmw" />---<input name="addtime_timeend" id="addtime_timeend" value="<?php echo isset($param['addtime_timeend'])?$param['addtime_timeend']:'';?>" type="text" class="scinputjmw" /></li>  
            <li>
           <li><label>&nbsp;</label><input type="submit" class="scbtn" value="查询" style="width:60px;"/></li>
 
         </ul>

        </div>
         </div>

</form>	

<!---------------------------------------------------------------------------- --> 	

		<script>
	$('#addtime_timestart').datePicker({followOffset : [0, 24]});
	$('#addtime_timeend').datePicker({followOffset : [0, 24]});
	</script>
<form action="" method="post" name="form">
	
    <table class="tablelist">

    	<thead>
    	<tr>
        <th width="5%"><input type="checkbox" value="on" name="chkall" onClick="CheckAll(this.form)"/></th>
        	
               <th width="15%" >订单编号</th>
               <th width="5%" >订单金额</th>
               <th width="5%" >订单状态</th>
               <th width="5%" >是否拼团</th>
               <th width="15%" >支付时间</th>
               <th width="15%" >下单时间</th>
               <th width="15%" >操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($item as $k=>$v):?>
        <tr>
        <td><input name="videoorderid" id="videoorderid" type="checkbox" value="<?php echo $v->id?>" /></td>


        <td><?php echo h($v->order_no)?></td>
        <td><?php echo h($v->price)?></td>
        <td><?php echo h($v->is_pay==0?'未支付':'已支付')?></td>
        <td><?php echo h($v->pintuan_id==0?'否':'是')?></td>
        <td><?php echo h($v->pay_time==0?'未支付':date("Y-m-d H:i:s",$v->pay_time))?></td>
        <td><?php echo h(date("Y-m-d H:i:s",$v->addtime))?></td>
        <td><a href="<?php echo url("videoorder/detail").'/order_id/'.$v->id ?>">详情</a></td>

        </tr> 
        <?php endforeach;?>
        
        </tbody>
    </table>
    
   </form>
 
    	<?php echo Q::control('pagination','pagination',array('url_args'=>$param,'pagination'=>$pagination,'show_count'=>1))?>
    </div>
  
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>
<iframe id="excel" name="excel" width="0" height="0"></iframe>
</html>


